package com.shuqi.database.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 按版本控制显示记录
 * 
 * @author li.li
 * @date 2014-6-9
 */
@DatabaseTable(tableName = VersionShow.TABLE_NAME)
public class VersionShow {
    public static final String TAG = "VersionShow";

    public static final String TABLE_NAME = "version_show";
    public static final String NAME = "name";
    public static final String VERSION_CODE = "version_code";
    public static final String VERSION_NAME = "version_name";
    public static final String VERSION_INFO = "version_info";
    public static final String ADD_TIME = "add_time";
    public static final String UP_TIME = "up_time";

    /** 数据库自增主键 */
    @DatabaseField(generatedId = true)
    private int _id;

    /** 帮助功能名称 */
    @DatabaseField(columnName = NAME, useGetSet = true, canBeNull = false, unique = true,
            index = true)
    private String name;

    /** 版本号 */
    @DatabaseField(columnName = VERSION_CODE, useGetSet = true, canBeNull = false)
    private int versionCode;

    /** 版本名 */
    @DatabaseField(columnName = VERSION_NAME, useGetSet = true, canBeNull = false)
    private String versionName;

    /** 内部版本信息 */
    @DatabaseField(columnName = VERSION_INFO, useGetSet = true, canBeNull = false)
    private String versionInfo;

    /** 创建时间 */
    @DatabaseField(columnName = ADD_TIME, useGetSet = true, canBeNull = false)
    private long addTime;

    /** 更新时间 */
    @DatabaseField(columnName = UP_TIME, useGetSet = true, canBeNull = false)
    private long upTime;


    /**
     * @return the _id
     */
    public int get_id() {
        return _id;
    }

    /**
     * @param _id the _id to set
     */
    public void set_id(int _id) {
        this._id = _id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the version_code
     */
    public int getVersionCode() {
        return versionCode;
    }

    /**
     * @param version_code the version_code to set
     */
    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    /**
     * @return the version_name
     */
    public String getVersionName() {
        return versionName;
    }

    /**
     * @param version_name the version_name to set
     */
    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    /**
     * @return the addTime
     */
    public long getAddTime() {
        return addTime;
    }

    /**
     * @param addTime the addTime to set
     */
    public void setAddTime(long addTime) {
        this.addTime = addTime;
    }

    /**
     * @return the upTime
     */
    public long getUpTime() {
        return upTime;
    }

    /**
     * @param upTime the upTime to set
     */
    public void setUpTime(long upTime) {
        this.upTime = upTime;
    }

    /**
     * @return the versionInfo
     */
    public String getVersionInfo() {
        return versionInfo;
    }

    /**
     * @param versionInfo the versionInfo to set
     */
    public void setVersionInfo(String versionInfo) {
        this.versionInfo = versionInfo;
    }

}
